import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 高生平
 * Date: 2025-09-06
 * Time: 20:27
 */
//在同一个类中定义多个方法：要求不仅可以求2个整数的最大值，还可以求3个小数的最大值
public class Test {
    public static int max (int a, int b) {
        return a > b ? a : b;
    }
    public static int max (int a, int b, int c) {
        int max2 = a > b ? a : b;
        return max2 > c ? max2 : c;
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num1 = sc.nextInt();
        int num2 = sc.nextInt();
        int num3 = sc.nextInt();
        System.out.println(max(num1,num2));
        System.out.println(max(num1,num2,num3));
    }
}
